import React, { useEffect } from "react";
// 引入axios
import axios from "axios";

export default function App() {
    // 一进页面就发送请求,第二个参数为空,初始化的时候就调用函数
    useEffect(() => {
        axios.get('/api1/user')
    }, [])
    return (
        <div>App</div>
    )
}